From b7eb9d8bd61ecdc399e8fc41ea4bbff35cbe0755 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 29 May 2018 12:38:09 +0200 Subject: [PATCH] x86: suppress sync when XPTI is disabled for a domain Now that we have a per-domain flag we can and should control sync-ing in a more fine grained manner: Only domains having XPTI enabled need the sync to occur. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Release-acked-by: Juergen Gross --- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 50b5343899..2b743921c3 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -3765,7 +3765,7 @@ long do_mmu_update( break; rc = mod_l4_entry(va, l4e_from_intpte(req.val), mfn, cmd == MMU_PT_UPDATE_PRESERVE_AD, v); - if ( !rc && !cpu_has_no_xpti ) + if ( !rc && pt_owner->arch.pv_domain.xpti ) { bool local_in_use = false; -- 2.30.2